#include "stdafx.h"
#include "CREATEPARAMETERS.h"

CREATEPARAMETERS::CREATEPARAMETERS( CCoreServices * pCore, XUINT32 cnt, XCHAR * pch, CSL3Parser * pParser)
{
	XASSERT(pCore != NULL);
	this->m_pCore = pCore;
	this->m_pParser = NULL;
	this->m_value.SetString(cnt,pch);
	this->m_pParser = pParser;
}

CREATEPARAMETERS::CREATEPARAMETERS( CCoreServices * pCore, XUINT32 cnt, XCHAR * pch, const xshared_ptr<XamlServiceProviderContext> & spServiceProviderContext )
{
	XASSERT(pCore != NULL);
	this->m_pCore = pCore;
	this->m_pParser = NULL;
	this->m_value.SetString(cnt,pch);
	this->m_spServiceProviderContext = spServiceProviderContext;
}

CREATEPARAMETERS::CREATEPARAMETERS( CCoreServices * pCore, XUINT32 cnt, const XCHAR * pch )
{
	XASSERT(pCore != NULL);
	this->m_pCore = pCore;
	this->m_pParser = NULL;
	this->m_value.SetString(cnt,const_cast<XCHAR *>(pch));
}

CREATEPARAMETERS::CREATEPARAMETERS( CCoreServices * pCore, XUINT32 cnt, XCHAR * pch )
{
	XASSERT(pCore != NULL);
	this->m_pCore = pCore;
	this->m_pParser = NULL;
	this->m_value.SetString(cnt,pch);
}

CREATEPARAMETERS::CREATEPARAMETERS( CCoreServices * pCore, const CValue & value )
{
	XASSERT(pCore != NULL);
	this->m_pCore = pCore;
	this->m_pParser = NULL;
	this->m_value = value;
}

CREATEPARAMETERS::CREATEPARAMETERS( CCoreServices * pCore )
{
	XASSERT(pCore != NULL);
	this->m_pCore = pCore;
	this->m_pParser = NULL;
}

CREATEPARAMETERS::CREATEPARAMETERS()
{
	this->m_pCore = NULL;
	this->m_pParser = NULL;
}
